<?php

namespace Database\Factories;

use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;

class ExpertFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition(){
        $i = random_int(0,2);
        $j = random_int(0,2);
        return [
            'name' => $this->faker->name(),
            'department'=>$j==0?'内科':'外科',
            'position'=>$i==0?'主任医师':'副主任医师',
            'duties'=>'职员',
            'hospital'=>'大医院',
            'profile'=>$this->faker->text(20),
            'education'=>$this->faker->text(20)
        ];
    }
}
